﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TestAngular.Migrations
{
    public partial class AggregateRoot_AddSourceCreatedOn : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesWorkCenter",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesWarehouse",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesUnitGroup",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesUnit",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesSupplierType",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesSupplier",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesSaleOrderType",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesSaleOrder",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesReceivementType",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesReceivement",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesPurchaseRequisitionType",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesPurchaseRequisition",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesPurchaseOrderType",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesPurchaseOrder",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesProductionOrderType",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesProductionOrder",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesPlanOrderType",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesPlanOrder",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesOperator",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesItemMaster",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesItemCategory",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesIntentOrderType",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesIntentOrder",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesEquipment",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesDepartment",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesCustomerType",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesCustomer",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesBomMaster",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesBillOfMaterials",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesAsnType",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesAsn",
                type: "datetime2",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesWorkCenter");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesWarehouse");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesUnitGroup");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesUnit");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesSupplierType");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesSupplier");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesSaleOrderType");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesSaleOrder");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesReceivementType");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesReceivement");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesPurchaseRequisitionType");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesPurchaseRequisition");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesPurchaseOrderType");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesPurchaseOrder");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesProductionOrderType");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesProductionOrder");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesPlanOrderType");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesPlanOrder");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesOperator");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesItemMaster");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesItemCategory");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesIntentOrderType");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesIntentOrder");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesEquipment");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesDepartment");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesCustomerType");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesCustomer");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesBomMaster");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesBillOfMaterials");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesAsnType");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesAsn");
        }
    }
}
